package com.sta3d.serveratm;


import java.io.*;
import java.net.*;

public abstract class ServerATM implements Runnable {
    public enum Keywords {
        ;
        public static final String WAITING_CONNECTION = "\nServer Started, starting story logs \nWaiting for client connection ...";
        public static final String CONNECTED = "The client is connected.";
    }

    ;

    public static void main(String[] args) throws IOException {
        ServerSocket soc = new ServerSocket(7001);
        System.out.println(soc + Keywords.WAITING_CONNECTION);
        for (; ; ) {
            Socket socket = soc.accept();
            System.out.println(Keywords.CONNECTED);
            new ServerPerformer(socket);
        }
    }

}
